package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.PromotionTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 活动模板表
 * @author : 
 * @email : 
 * @since : 2020-03-12 06:46:27
 * @version : v1.0.0
 */
@Mapper
public interface  PromotionTemplateMapper {

    long insert(PromotionTemplate promotionTemplate);

    long delete(Long id);

    long update(PromotionTemplate promotionTemplate);

    PromotionTemplate queryByPrimaryKey(Long id);

    List<PromotionTemplate> query(PromotionTemplate promotionTemplate);

    List<PromotionTemplate> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("promotionTemplate") PromotionTemplate promotionTemplate);

    long queryPageCount(@Param("promotionTemplate") PromotionTemplate promotionTemplate);
}